import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';

import { AccessDenyComponent } from './access-deny/access-deny.component'
import { LoginComponent } from './login/login.component'
import { RegisterComponent } from './register/register.component'
import { P500Component } from './error/500.component'
// import { P404Component } from './error/404.component' // 404需要在主模块设置全局的404路由，所以不能在这里重复定义
import { SettingsComponent } from './settings/settings.component'
import { PasswordComponent } from './password/password.component'
import { PasswordResetInitComponent } from './password-reset/init/password-reset-init.component'
import { PasswordResetFinishComponent } from './password-reset/finish/password-reset-finish.component'

import { PasswordStrengthBarComponent } from './components/password-strength-bar.component'


import { CommonRoutingModule } from './common-routing.module'
import { DeliverApplicationSharedModule } from '../shared'


@NgModule({
    imports: [ CommonRoutingModule, DeliverApplicationSharedModule ],
    declarations: [AccessDenyComponent, LoginComponent, RegisterComponent, P500Component, PasswordStrengthBarComponent,
      SettingsComponent, PasswordComponent, PasswordResetInitComponent, PasswordResetFinishComponent],
    // providers: [{ provide: NgbDateAdapter, useClass: NgbDateMomentAdapter }],
    exports: [ CommonModule ],
    schemas: []
    // schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class DeliverCommonModule {}
